﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FactoryClsssLib.Strategy
{
    /// <summary>
    /// 策略模式  行为模式
    /// 数字计算策略
    /// </summary>
    public interface IStrategy
    {
        /// <summary>
        /// 计算
        /// </summary>
        /// <param name="num1"></param>
        /// <param name="num2"></param>
        /// <returns></returns>
        public int DoOperation(int num1, int num2);
    }
}
